package com.zly.demo.redislimit.controller;

import com.zly.demo.redislimit.annotation.RedisLimit;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("/limit")
    @RedisLimit(key = "lock")
    public String limit(){
        return "limit";
    }
}
